require_relative '../lib/insert_topn'

def test
  datas = 100.times.map{ rand 100 }
  puts datas.inspect

  st = InsertTopn.new(5) #{|a, b| b <=> a}
  require 'byebug'

  st.push(datas)
  # datas.each do |data|
  #   # byebug
  #   st.push(data)
  #   puts "#{data}\t#{st.nums.inspect}"
  # end
end
test
